package org.example.exampreparationtreasure.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.exampreparationtreasure.model.entity.QuestionCategory;

import java.util.List;

@Mapper
public interface QuestionCategoryMapper extends BaseMapper<QuestionCategory> {

    List<QuestionCategory> selectByParentId(@Param("parentId") Long parentId);

    List<Long> selectDescendantIds(@Param("categoryId") Long categoryId);
}


